Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

365
Visualizações
Why am I getting this Error: "Cannot find file './App' in './src'.":?

I am trying to deploy my react app to aws-amplify but I keep getting this error in the build process in aws.

When I run the app in production, "yarn run build" it runs fine locally, but when I push my changes to aws I get the following error:

"Failed to compile.
2020-07-26T15:51:52.356Z [INFO]: ./src/index.js
Cannot find file './App' in './src'.":

more detailed aws error image attached

My folder structure is as follows:

- public
  - favicon.ico
  - index.html
  - logo192.png
  - logo512.png
  - manifest.json
  - robots.txt
- src
  - assets
  - components
    - Contact.js
    - Home.js
    - Navigation.js
    - NotFound.js
    - Project.js
    - Projects.js
  - App.css
  - App.js
  - App.test.js
  - contact.css
  - home.css
  - index.css
  - index.js
  - logo.svg
  - projects.css
  - serviceWorker.js
  - setupTest.js
- .gitignore
- package.json
- README.md
- yarn.lock

app component

screenshot of my index.js and the folder structure

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

You are including file App.css but there is only app.css. Fix the case of the first letter.

Some operating systems (or better said, some file systems) are case-sensitive. You have to write the name of the file correctly.

If you are using a versioning system (e.g. git), make sure you have renamed the file in the versioning system. On a case-insensitive file system a change in case won't be detected.

over 4 years ago · Santiago Trujillo Relatório

0

For others that come here:

It's likely you have different casings for your folder or file names in your master/main and develop or other branches.

To make git case sensitive use:

git config core.ignorecase false

and then commit again.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda